import { Router } from 'express';
import { UrlEntity } from '../../framework/baseUrl';
import { UserEntity } from 'spen-common/src/entity/User';
import { createUser } from '../server/systemService';

const app = Router()

app.post('/create', async (req, res)=>{
    const result = await createUser(<UserEntity>(req.body));
    res.send(result)
})


export default <UrlEntity>{
    application: app,
    type: 'router'
}